//
//  CFSheetCell.m
//  CFfuturestalent
//
//  Created by 子yu 刘 on 2018/5/2.
//  Copyright © 2018年 子yu 刘. All rights reserved.
//

#import "CFSheetCell.h"

@implementation CFSheetCell

-(instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier{
    if (self = [super initWithStyle:style reuseIdentifier:reuseIdentifier]) {
        self.selectionStyle = UITableViewCellSelectionStyleNone;
        [self initView];
    }
    return self;
}

- (void)initView{
    UILabel * titleLable = [[UILabel alloc] init];
    titleLable.textAlignment = NSTextAlignmentCenter;
    titleLable.font = [UIFont systemFontOfSize:18];
    titleLable.textColor = [UIColor colorWithHexString:@"000000"];
    [self.contentView addSubview:titleLable];
    [titleLable mas_makeConstraints:^(MASConstraintMaker *make) {
        make.centerX.mas_equalTo(0);
        make.centerY.mas_equalTo(0);
    }];
    self.titleLabel = titleLable;
    UIView * line = [[UIView alloc] init];
    line.backgroundColor = [UIColor colorWithHexString:@"cccccc"];
    [self.contentView addSubview:line];
    [line mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.right.bottom.mas_equalTo(self);
        make.height.mas_offset(1);
    }];
}
@end
